<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCityListsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('city_lists', function (Blueprint $table) {
            $table->increments('id');
            $table->string('key', 50)->comment('城市码');
            $table->string('name', 50)->comment('名称');
            $table->string('lat', 50)->comment('维度');
            $table->string('lng', 50)->comment('经度');
            $table->string('level', 10)->comment('层级');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('city_lists');
    }
}
